package com.example.administrator.daydayappmarket.game.fragment.fragments.toplist.fragment.fragments.single.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by 郎志奇 on 2016/12/28.
 */

public class GameTopListSingleInfo {

    private String theme_type;

    private String id;

    private String name;

    private String icon_url;

    private String download_url;

    private String download_count;

    private String package_size;

    private String reviews;

    public void parseJson(JSONObject jsonObject) throws JSONException{

        if (jsonObject != null) {

            theme_type = jsonObject.getString("theme_type");

            JSONObject data = jsonObject.getJSONObject("data");

            id = data.getString("id");
            name = data.getString("name");
            icon_url = data.getString("icon_url");
            download_url = data.getString("download_url");
            download_count = data.getString("download_count");
            package_size = data.getString("package_size");
            reviews=data.getString("reviews");

        }
    }

    public String getTheme_type() {
        return theme_type;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getIcon_url() {
        return icon_url;
    }

    public String getDownload_url() {
        return download_url;
    }

    public String getDownload_count() {
        return download_count;
    }

    public String getPackage_size() {
        return package_size;
    }

    public String getReviews() {
        return reviews;
    }
}
